//
//  CKCacheViewController.m
//  ckjntiku
//
//  Created by Eileen Vivian on 2017/12/7.
//  Copyright © 2017年 Eileen Vivian. All rights reserved.
//

#import "CKCacheViewController.h"
#import "ScottPageView.h"
@interface CKCacheViewController ()
@property (nonatomic, strong) ScottPageView *pageViewCode;

@property (nonatomic, strong) NSArray *picArrs;
@end

@implementation CKCacheViewController
#pragma mark - 懒加载
- (NSArray *)picArrs {
    if (!_picArrs) {
        _picArrs = [[NSArray alloc] initWithObjects:[UIImage imageNamed:@"01.png"], [UIImage imageNamed:@"02.png"],[UIImage imageNamed:@"03.png"], nil];
    }
    return _picArrs;
}


- (void)viewDidLoad {
    [super viewDidLoad];
   self.navigationItem.title = @"公司风采";
    [self createWithCode];

}
#pragma mark - 代码创建
- (void)createWithCode {
    _pageViewCode = [ScottPageView pageViewWithImageArr:self.picArrs andImageClickBlock:^(NSInteger index) {
    }];
    _pageViewCode.frame = CGRectMake(0, 64, XMGScreenW, 200);
    _pageViewCode.time = 1;
    [self.view addSubview:_pageViewCode];
}

- (void)viewDidLayoutSubviews {
    [super viewDidLayoutSubviews];
    CGRect originFrame = self.pageViewCode.pageControl.frame;
    originFrame.origin.y = CGRectGetHeight(self.pageViewCode.frame) - 15;
    self.pageViewCode.pageControl.frame = originFrame;
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
